package cn.neusoft.service;

import cn.neusoft.domain.ReturnedInfo;
import cn.neusoft.domain.Supplier;
import cn.neusoft.query.BaseQuery;
import cn.neusoft.vo.PageBean;

import java.util.List;

public interface SupplierService {

    void add(Supplier supplier);

    void delete(String id);

    void update(Supplier supplier);

    List<Supplier> getAll();

    List<Supplier> getByName(String name);

    List<Supplier> getSuppliersByPage(int page, int pageSize);

    int getTotalCount();

    PageBean<Supplier> findByPage(BaseQuery query);

    PageBean<ReturnedInfo> getReturnToSupplierInfo(BaseQuery query);
}
